package com.ruoyi.boss.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 待派单对象 t_dispatched
 * 
 * @author ruoyi
 * @date 2025-08-17
 */
public class TDispatched extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 待派单ID */
    private Long dispatchedId;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNumber;

    /** 用户id */
    @Excel(name = "用户id")
    private String userId;

    /** 订车人手机号 */
    @Excel(name = "订车人手机号")
    private String vehiclePhone;

    /** 乘车人 */
    @Excel(name = "乘车人")
    private String usePeople;

    /** 乘车人手机号 */
    @Excel(name = "乘车人手机号")
    private String usePhone;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 用车时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "用车时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date useTime;

    /** 上车地址 */
    @Excel(name = "上车地址")
    private String upAddress;

    /** 下车地址 */
    @Excel(name = "下车地址")
    private String downAddress;

    /** 服务里程 */
    @Excel(name = "服务里程")
    private String serviceMileage;

    /** 距离下单时间已过时间（分钟） */
    @Excel(name = "距离下单时间已过时间", readConverterExp = "分=钟")
    private Long passTime;

    /** 距离用车时间已过时间（分钟） */
    @Excel(name = "距离用车时间已过时间", readConverterExp = "分=钟")
    private Long pickTime;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operationTime;

    /** 创建人 */
    private String createdBy;

    /** 创建时间 */
    private Date createdTime;

    /** 更新人 */
    private String updatedBy;

    /** 更新时间 */
    private Date updatedTime;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    private String userName;

    public void setDispatchedId(Long dispatchedId) 
    {
        this.dispatchedId = dispatchedId;
    }

    public Long getDispatchedId() 
    {
        return dispatchedId;
    }

    public void setOrderNumber(String orderNumber) 
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber() 
    {
        return orderNumber;
    }

    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }

    public void setVehiclePhone(String vehiclePhone) 
    {
        this.vehiclePhone = vehiclePhone;
    }

    public String getVehiclePhone() 
    {
        return vehiclePhone;
    }

    public void setUsePeople(String usePeople) 
    {
        this.usePeople = usePeople;
    }

    public String getUsePeople() 
    {
        return usePeople;
    }

    public void setUsePhone(String usePhone) 
    {
        this.usePhone = usePhone;
    }

    public String getUsePhone() 
    {
        return usePhone;
    }

    public void setOrderTime(Date orderTime) 
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime() 
    {
        return orderTime;
    }

    public void setUseTime(Date useTime) 
    {
        this.useTime = useTime;
    }

    public Date getUseTime() 
    {
        return useTime;
    }

    public void setUpAddress(String upAddress) 
    {
        this.upAddress = upAddress;
    }

    public String getUpAddress() 
    {
        return upAddress;
    }

    public void setDownAddress(String downAddress) 
    {
        this.downAddress = downAddress;
    }

    public String getDownAddress() 
    {
        return downAddress;
    }

    public void setServiceMileage(String serviceMileage) 
    {
        this.serviceMileage = serviceMileage;
    }

    public String getServiceMileage() 
    {
        return serviceMileage;
    }

    public void setPassTime(Long passTime) 
    {
        this.passTime = passTime;
    }

    public Long getPassTime() 
    {
        return passTime;
    }

    public void setPickTime(Long pickTime) 
    {
        this.pickTime = pickTime;
    }

    public Long getPickTime() 
    {
        return pickTime;
    }

    public void setOperationTime(Date operationTime) 
    {
        this.operationTime = operationTime;
    }

    public Date getOperationTime() 
    {
        return operationTime;
    }

    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }

    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }

    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }

    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dispatchedId", getDispatchedId())
            .append("orderNumber", getOrderNumber())
            .append("userId", getUserId())
            .append("vehiclePhone", getVehiclePhone())
            .append("usePeople", getUsePeople())
            .append("usePhone", getUsePhone())
            .append("orderTime", getOrderTime())
            .append("useTime", getUseTime())
            .append("upAddress", getUpAddress())
            .append("downAddress", getDownAddress())
            .append("serviceMileage", getServiceMileage())
            .append("passTime", getPassTime())
            .append("pickTime", getPickTime())
            .append("operationTime", getOperationTime())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .toString();
    }
}
